package cn.lkx.eduservice.service;

import cn.lkx.eduservice.entity.EduCourse;
import cn.lkx.eduservice.entity.vo.CourseInfoVo;
import cn.lkx.eduservice.entity.vo.CoursePublishVo;
import cn.lkx.eduservice.entity.vo.CourseQuery;
import cn.lkx.eduservice.entity.vo.frontvo.CourseDetailVo;
import cn.lkx.eduservice.entity.vo.frontvo.CourseQueryVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author lkx
 * @since 2022-05-03
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getCoursePublishInfo(String id);
    //分页且多条件查询课程信息
    void pageQueryConditions(Page<EduCourse> page, CourseQuery courseQuery);

    boolean removeCourseById(String courseId);
    //前台的课程列表
    Map<String, Object> getCourseFrontList(Page<EduCourse> coursePage, CourseQueryVo courseQueryVo);
    //前台课程详情获取 （课程简介 讲师信息 课程本身信息）
    CourseDetailVo getCourseDetailById(String courseId);
}
